package reflect;

import reflect.annotations.AutoRunClass;

public class ReflectDemo9 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class cls = Class.forName("reflect.Person");
        boolean b = cls.isAnnotationPresent(AutoRunClass.class);
        if(b){
            System.out.println("被注解");
        }else{
            System.out.println("不被注解");
        }
    }
}
